package ejb;

import java.util.Collection;

import javax.ejb.Remote;

import jpa.ShoppingCart;
import jpa.CustomerJPA;
import jpa.OrderJPA;
import jpa.ShippingAddressJPA;
import jpa.CustomerJPA;
//import jpa.CustomerJPA;


/**
 * Session EJB Remote Interfaces
 */
@Remote
public interface OrderFacadeRemote {
	  /**
	   * Remotely invoked method.
	   */
	  public OrderJPA order(ShoppingCart shoppingCart);
	  public OrderJPA order(ShoppingCart shoppingCart,ShippingAddressJPA shipping);
	  public Collection<?> findAllOrders();
	  public Collection<?> showOrder(int idOrder);
	  public OrderJPA findOrdersById(int id);
	  public void cancelOrder(OrderJPA order);
	  public int orders(CustomerJPA customer);
	  public float amount(CustomerJPA customer);

}